package org.db.dao;


public class HoehenlinienDAO extends DAO implements Comparable<HoehenlinienDAO>{

	
	private double stationierungInMeter;		
	private double hoehe;	
	private double neigungAn;	
	private double laengeAn;	
	private int ra;	
	private double lt;	
	private double a;
	private double neigungAb;
	private double laengeAb;

	public HoehenlinienDAO(double neigungAn,
			double laengeAn, double hoehe, double stationierungInMeter,
	          int ra, double lt, double a, double neigungAb, double laengeAb) {
		this.stationierungInMeter = stationierungInMeter;
		this.hoehe = hoehe;
		this.neigungAn = neigungAn;
		this.laengeAn = laengeAn;
		this.ra = ra;
		this.lt = lt;
		this.a = a;
		this.neigungAb = neigungAb;
		this.laengeAb = laengeAb;
	}

	public double getStationierungInMeter() {
		return stationierungInMeter;
	}

	
	public void setStationierungInMeter(double stationierungInMeter) {
		this.stationierungInMeter = stationierungInMeter;
	}
	
	public double gethoehe() {
		return hoehe;
	}

	
	public void sethoehe(double hoehe) {
		this.hoehe = hoehe;
	}

	
	public double getNeigungAn() {
		return neigungAn;
	}

	
	public void setNeigungAn(double neigungAn) {
		this.neigungAn = neigungAn;
	}

	
	public double getLaengeAn() {
		return laengeAn;
	}

	
	public void setLaengeAn(double laengeAn) {
		this.laengeAn = laengeAn;
	}

	
	public int getRa() {
		return ra;
	}

	
	public void setRa(int ra) {
		this.ra = ra;
	}

	
	public double getLt() {
		return lt;
	}

	
	public void setLt(double lt) {
		this.lt = lt;
	}

	
	public double getA() {
		return a;
	}

	
	public void setA(double a) {
		this.a = a;
	}


	public void setNeigungAb(double neigungAb) {
		this.neigungAb = neigungAb;
	}


	public double getNeigungAb() {
		return neigungAb;
	}


	public void setLaengeAb(double laengeAb) {
		this.laengeAb = laengeAb;
	}


	public double getLaengeAb() {
		return laengeAb;
	}
	
	@Override
	public int compareTo(HoehenlinienDAO other) {
		double diff = this.stationierungInMeter - other.getStationierungInMeter();
		if(diff > 0){
			return 1;
		} else if(diff < 0){
			return -1;
		} else {
			return 0;
		}
	}

}
